package com.lse_api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 项目组成员
 * </p>
 *
 * @author 祁雪
 * @since 2020-05-11
 */
@Getter
@Setter
public class GroupUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目组ID
     */
    private Integer groupId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 是否是创建者 0.否 1.是
     */
    private Integer isCreate;

    /**
     * 加入时间
     */
    private Date joinTime;

    /**
     * 用户信息
     */
    @TableField(exist = false)
    private UserInfo userInfo;

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getIsCreate() {
        return isCreate;
    }

    public void setIsCreate(Integer isCreate) {
        this.isCreate = isCreate;
    }

    public Date getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    @Override
    public String toString() {
        return "GroupUser{" +
                "groupId=" + groupId +
                ", userId=" + userId +
                ", isCreate=" + isCreate +
                ", joinTime=" + joinTime +
                "}";
    }
}
